package com.xnyzc.lhy.order.controller.capi.user;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.order.service.user.IOaCBillRulesService;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 计费规则
 * @Author zhuyubin
 * @Date 2019-08-19 10:58
 **/
@RestController
@RequestMapping(value = "capi/billRules")
public class OaCBillRulesController {

    @Autowired
    private IOaCBillRulesService iOaCBillRulesService;

    @GetMapping(value = "getBillRules")
    public Rv getBillRules(@ApiParam(name = "orderNo", value = "订单号") @RequestParam("orderNo") String orderNo){
        return Rv.wrap(iOaCBillRulesService.getBillRules(orderNo));
    }
}
